package com.better.backend.mqReceiverService.questionReceiver.repository;
import com.better.backend.mqReceiverService.questionReceiver.model.ExamPaperModel;
import com.better.common.mongo.repository.CommonRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2017/11/8.
 */
@Repository
public interface ExamPaperRepsitory extends CommonRepository<ExamPaperModel,String>{
    List<ExamPaperModel> findByExamid(String examid);
    ExamPaperModel findByExamidAndSubjectidAndGradeid(String examid,String subjectid,String gradeid);

    /**
     *  根据考试ID和年纪id获得考试相关信息
     * @param examId
     * @param gradeId
     * @return
     */
    List<ExamPaperModel> findByExamidAndGradeid(String examId,String gradeId);
}
